/**
 * Project Name:gc_sms_mvn
 * File Name:LoginLog.java
 * Package Name:com.clps.dev.sms.entity.log
 * @date 2018-12-11 10:59:02 
 * Copyright (c) 2018, jackie.duan@clpsglobal.com All Rights Reserved.
 *
 */
package com.clps.dev.sms.entity.log;

import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.UpdateTimestamp;

/**
 * ClassName: LoginLog 
 * @description
 * @date 2018-12-11 10:59:02 
 *
 * @author jackie.duan
 * @version V1.0
 * @since JDK 1.8
 */
@Entity
@Table(name = "log_login_log")
public class LoginLog implements Serializable{

	
		private static final long serialVersionUID = 1L;

		@Id
		@GeneratedValue(strategy=GenerationType.IDENTITY )//先假设是自增
		@Column(name = "LOGIN_LOG_ID")
	 	private Integer logId;//登陆日志logId
		
		@Column(name = "LOGIN_ACCOUNT_NAME",nullable = false)
		private String accountName;//登陆账户名
		
		@Column(name = "LOGIN_LOG_IP",nullable = false)
	    private String ip;//访问ip
		
		@UpdateTimestamp
		@Column(name = "LOGIN_LOG_TIME")
		private Timestamp loginTime;//登陆时间
		
		@Column(name = "LOGOUT_LOG_TIME")
		private String logoutTime;//登出时间
		
		@Column(name = "LOGIN_LOG_COMMENTS")
		private String comments;//备注
		
	    public LoginLog() {
			super();
		}

		/**
		 * logId.
		 * @return  the logId
		 */
		public Integer getLogId() {
			return logId;
		}

		/**
		 * logId.
		 *
		 * @param   logId    the logId to set
		 */
		public void setLogId(Integer logId) {
			this.logId = logId;
		}

		/**
		 * accountName.
		 * @return  the accountName
		 */
		public String getAccountName() {
			return accountName;
		}

		/**
		 * accountName.
		 *
		 * @param   accountName    the accountName to set
		 */
		public void setAccountName(String accountName) {
			this.accountName = accountName;
		}

		

		/**
		 * ip.
		 * @return  the ip
		 */
		public String getIp() {
			return ip;
		}

		/**
		 * ip.
		 *
		 * @param   ip    the ip to set
		 */
		public void setIp(String ip) {
			this.ip = ip;
		}

		/**
		 * loginTime.
		 * @return  the loginTime
		 */
		public Timestamp getLoginTime() {
			return loginTime;
		}

		/**
		 * loginTime.
		 *
		 * @param   loginTime    the loginTime to set
		 */
		public void setLoginTime(Timestamp loginTime) {
			this.loginTime = loginTime;
		}


		/**
		 * logoutTime.
		 * @return  the logoutTime
		 */
		public String getLogoutTime() {
			return logoutTime;
		}

		/**
		 * logoutTime.
		 *
		 * @param   logoutTime    the logoutTime to set
		 */
		public void setLogoutTime(String logoutTime) {
			this.logoutTime = logoutTime;
		}

		/**
		 * comments.
		 * @return  the comments
		 */
		public String getComments() {
			return comments;
		}

		/**
		 * comments.
		 *
		 * @param   comments    the comments to set
		 */
		public void setComments(String comments) {
			this.comments = comments;
		}

		/**
		 * @see java.lang.Object#toString()
		 */
		@Override
		public String toString() {
			return "LoginLog [logId=" + logId + ", accountName=" + accountName + ", ip=" + ip + ", loginTime="
					+ loginTime + ", logoutTime=" + logoutTime + ", comments=" + comments + "]";
		}

		


	   
		
}
